"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileUtil = void 0;
const Logger_1 = require("./Logger");
const fs = require("fs");
const path = require("path");
class FileUtil {
    write_json(jsonStr, filePath) {
        if (fs.existsSync(filePath)) {
            fs.writeFileSync(filePath, jsonStr);
        }
        else {
            Logger_1.Logger.warn("文件不存在=", filePath);
        }
    }
}
exports.FileUtil = FileUtil;
FileUtil.instance = new FileUtil();
